package com.aspose.cells;

import java.util.ArrayList;
import java.util.HashMap;

class zqm {
   String a = "Office";
   String b = null;
   int c = -1;
   HashMap d = null;
   zns[] e = new zns[12];
   zqn f = new zqn();
   ArrayList g;

   ArrayList a() {
      if (this.g == null) {
         this.g = new ArrayList();
      }

      return this.g;
   }

   zqm(String var1, Color[] var2) {
      this.a = var1;
      this.e = new zns[12];

      for(int var3 = 0; var3 < var2.length; ++var3) {
         zns var4 = new zns();
         var4.a(var2[var3]);
         this.e[var3] = var4;
         var4.b = zase.ae(var3);
      }

   }

   void a(zqm var1) {
      this.a = var1.a;
      this.e = new zns[12];

      for(int var2 = 0; var2 < var1.e.length; ++var2) {
         zns var3 = new zns();
         var3.a(var1.e[var2]);
         this.e[var2] = var3;
      }

      this.b = var1.b;
      this.d = var1.d;
   }

   boolean b() {
      return com.aspose.cells.b.a.zv.a(this.a, "Office", true) != 0 || this.b != null;
   }

   zqm() {
      this.c();
   }

   Color a(int var1) {
      return var1 >= 0 && var1 <= this.e.length - 1 ? this.e[var1].a() : Color.getEmpty();
   }

   Color a(String var1) {
      if (var1 == null) {
         return Color.getEmpty();
      } else {
         int var2 = zase.ah(var1);
         return this.a(var2);
      }
   }

   void c() {
      for(int var1 = 0; var1 < 12; ++var1) {
         zns var2 = this.e[var1];
         if (var2 == null) {
            this.e[var1] = this.b(var1);
         }
      }

   }

   private zns b(int var1) {
      zns var2;
      switch(var1) {
      case 0:
         var2 = new zns();
         var2.b = "lt1";
         var2.a(zase.t("ffffff"));
         var2.a(true);
         var2.c = "window";
         return var2;
      case 1:
         var2 = new zns();
         var2.b = "dk1";
         var2.a(zase.t("000000"));
         var2.a(true);
         var2.c = "windowText";
         return var2;
      case 2:
         return this.a("lt2", "EEECE1");
      case 3:
         return this.a("dk2", "1F497D");
      case 4:
         return this.a("accent1", "4F81BD");
      case 5:
         return this.a("accent2", "C0504D");
      case 6:
         return this.a("accent3", "9BBB59");
      case 7:
         return this.a("accent4", "8064A2");
      case 8:
         return this.a("accent5", "4BACC6");
      case 9:
         return this.a("accent6", "F79646");
      case 10:
         return this.a("hlink", "0000FF");
      case 11:
         return this.a("folHlink", "800080");
      default:
         return this.a("lt1", "000000");
      }
   }

   private zns a(String var1, String var2) {
      zns var3 = new zns();
      var3.b = var1;
      var3.a(zase.t(var2));
      return var3;
   }
}
